package com.mjh.zhujianju.model.party;

import com.livew.framework.base.model.BaseModel;

public class BuildingExamAnswerEO extends BaseModel implements Comparable{
	 // 考题id
    private Long topicId;

    // 考题类容
    private String title;

    // 是否正确
    private String isAnswer;

    // 排序 A/B/C/D
    private String sort;

    private String status;

    private static final long serialVersionUID = 1L;

    /**
     * 获取考题id
     *
     * @return topic_id - 考题id
     */
    public Long getTopicId() {
        return topicId;
    }

    /**
     * 设置考题id
     *
     * @param topicId 考题id
     */
    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    /**
     * 获取考题类容
     *
     * @return title - 考题类容
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置考题类容
     *
     * @param title 考题类容
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取是否正确
     *
     * @return is_answer - 是否正确
     */
    public String getIsAnswer() {
        return isAnswer;
    }

    /**
     * 设置是否正确
     *
     * @param isAnswer 是否正确
     */
    public void setIsAnswer(String isAnswer) {
        this.isAnswer = isAnswer == null ? null : isAnswer.trim();
    }

    /**
     * 获取排序 A/B/C/D
     *
     * @return sort - 排序 A/B/C/D
     */
    public String getSort() {
        return sort;
    }

    /**
     * 设置排序 A/B/C/D
     *
     * @param sort 排序 A/B/C/D
     */
    public void setSort(String sort) {
        this.sort = sort == null ? null : sort.trim();
    }

    /**
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public int compareTo(Object o) {
        BuildingExamAnswerEO buildingExamAnswerEO = (BuildingExamAnswerEO)o;

        return this.sort.compareTo(buildingExamAnswerEO.getSort());
    }
}